import Vue from "vue";
import VueRouter from "vue-router";
import home from "../views/Home.vue";
import list from "../views/list.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/Home",
    name: "Home",
    component: Home,
  },
  {
    path: "/list",
    name: "list",
    component: list,
  },
];

const router = new VueRouter({
  routes,
});

export default router;
